import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';

import {AuthLoginComponent} from './auth-login/auth-login.component';
import {AuthRegistrationComponent} from './auth-registration/auth-registration.component';
import {AuthGuard} from './auth-guard';

export const authRoutes: Routes = [
    {
        path: 'auth',
        canActivate: [AuthGuard],
        children: [
            {
                path: 'login',
                component: AuthLoginComponent
            },
            {
                path: 'registration',
                component: AuthRegistrationComponent
            }
        ]
    }
];
